package org.example.springweibo.mapper;

import org.example.springweibo.pojo.entity.User;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 数据层
 */
@Repository
public interface UserMapper {

    /**
     * 插入用户数据
     * @param user
     * @return
     */
    int insertUserData(User user);

    /**
     * 查找用户
     * @param user
     * @return 用户 集合
     */
    List<User> selectUserDataByUsername(User user);

}
